package com.xxxx.seckill.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class LoginDto {
    @NotNull
    @Pattern(regexp = "^[1][3,4,5,7,8,9][0-9]{9}$")
//    @Length(max = 11,min = 11)
    private String mobile;

    @NotNull
    private String password;
}
